if ($('#tagCloud').length > 0) {
    $('#tagCloud').tagcanvas({
        textColour:'#000',
        outlineThickness:2,
        maxSpeed:0.03,
        wheelZoom:false,
        shuffleTags:true,
        depth:0.75,
        outlineColour:'#000'
    }, 'tagList');
}

if ($('.chzn-select').length > 0) {
    $(".chzn-select").chosen();
    $(".chzn-select-deselect").chosen({allow_single_deselect:true});
}
if ($('.chzn-select-create-option').length > 0) {
    $(".chzn-select-create-option").chosen({
        create_option:function (term) {
            var chosen = this;
            chosen.append_option({
                value:term,
                text:term
            });
        },
        create_option_text:false,
        persistent_create_option:false
    });
    $(".chzn-select-deselect").chosen({allow_single_deselect:true});
}